<?php

require_once("../../controllers/init.php");
require_once($FILE_SYSTEM_ROOT."/controllers/authentication.php");


//print_r($_POST);
$choir = "";
$category = "";

if (isset($_POST['choir']))
	$choir = $_POST['choir'];
if (isset($_POST['category']))
	$category = $_POST['category'];

$history = new MusicHistoryRequest($choir,$category);
$historyArray = $history->getHistory();

foreach($historyArray as $historyItem)
{
		print "<div id=\"musiclist-category-item\">";
		print "<div class=\"musiclist-piece\" >".$historyItem['Piece']."</div>";
		print "<div class=\"musiclist-count\" >".$historyItem['Count']."</div>";
		print "</div>";
}



